$left-nav-width: 300px;
// 防止宽度过小，MR概览页样式错乱
@media screen and (max-width: 1162px) {
  html.mr-html {
    height: 100%;
    overflow: auto;
    body {
      width: 1920px !important;
      max-width: unset !important;
      min-width: 1920px !important;
      height: 100%;
      overflow: hidden;
    }
  }
}
#container {
  overflow: auto;
}

.mr-detail-container {
  position: relative;
  overflow: initial;
  display: flex;
  flex-direction: column;
  /* height: 100%; */
  height: calc(100vh - 48px);
}
body.withAnnouncement {
  .mr-detail-container {
    height: calc(100vh - 48px - 36px);
  }
}

@media screen and (min-width: 1162px) {
  #container > div {
    margin-left: 0;
  }
}
.mr-detail {
  &-content-header {
    padding: 0 20px;
    &-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }
  &-content-view {
    flex: 1;
    & > div {
      height: 100%;
    }
  }
}

.mr-detail-loading {
  height: 200px;
  display: flex;
  justify-content: center;
  align-content: center;
  background: #fff;
}
.mr-detail-content {
  position: relative;
  overflow: initial;
  display: flex;
  flex-direction: column;
  height: 100%;
  &-body {
    position: relative;
    left: $left-nav-width;
    overflow: auto;
    background: #fafafa;
    min-height: calc(100% - 88px);
    &.no-nav {
      margin-left: 0;
    }

    .mr-hide-fix-icon {
      position: fixed;
      top: 180px;
      width: 31px;
      height: 30px;
      border-radius: 0 15px 15px 0;
      background: $gray-02;
      color: $gray-06;
      cursor: pointer;
      border: 1px solid $gray-03;
      box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      &:hover {
        color: #fff;
        border: 1px solid $primary-brand;
        background: $primary-brand;
        width: 37px;
      }
      &.hide {
        display: none;
      }
    }

    .mr-nav-fix-hide {
      height: 100%;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE 10+ */
      &::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Webkit */
      }
      background: #fff;
      // 固定左側
      position: fixed;
      top: 159px;
      bottom: 0;
      left: 0;
      z-index: 4;
      transform: translateX(0);
    }

    .mr-nav {
      height: 100%;
      // 隐藏滚动条
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE 10+ */
      &::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Webkit */
      }
      width: $left-nav-width;
      background: #fff;
      border-right: 1px solid var(--gray-02, #f0f0f0);
      border-top: 1px solid var(--gray-02, #f0f0f0);
      // 固定左側
      position: fixed;
      top: 135px;
      bottom: 0;
      z-index: 11;
      transform: translateX(0);
      .mr-nav-fix-icon {
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: -15px;
        width: 30px;
        height: 30px;
        border: 1px solid $gray-03;
        color: $gray-06;
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2;
        border-radius: 50%;
        background: #fff;
        &:hover {
          color: #fff;
          border: 1px solid $primary-brand;
          background: $primary-brand;
        }
      }
      .mr-nav-move-line {
        width: 0;
        position: absolute;
        top: 0;
        right: -4px;
        bottom: 0;
        padding: 0 4px;
        cursor: col-resize;
        &:hover {
          div {
            background: #1b9aee;
          }
        }
        div {
          position: absolute;
          top: 0;
          right: 3px;
          bottom: 0;
          width: 2px;
        }
      }
      &.width0 {
        transform: translateX(-400px);
      }

      &:hover {
        .mr-nav-fix-icon {
          display: flex;
        }
      }
      &-tree {
        .#{$teamix-prefix}tree-node {
          margin-bottom: 4px;
        }
        .#{$teamix-prefix}tree-switcher {
          margin-right: 0;
        }
        .#{$teamix-prefix}selected {
          background-color: #f0f9ff !important;
        }
        .#{$teamix-prefix}tree-node-label {
          background-color: unset !important;
        }
        .#{$teamix-prefix}tree-node-label-wrapper {
          margin-left: -6px;
        }
        .#{$teamix-prefix}tree-node-inner:hover {
          background-color: #f7f7f7;
        }
        .mr-tab-list {
          margin: 0 20px;
          padding: 14px 0;
          border-bottom: 1px solid $gray-02;
          .badge-count {
            float: right;
            color: $gray-06;
            font-weight: normal;
          }
        }
      }
    }

    &-right {
      position: relative;
    }
  }
}
.merge-menu {
  .#{$teamix-prefix}menu-item-inner {
    overflow: visible;
    height: 48px !important;
    margin: 4px 0;
    padding-top: 4px;
    padding-bottom: 4px;
    .merge-menu-item {
      line-height: 20px;
      &-title {
        display: flex;
        align-items: center;
      }
      &-desc {
        font-size: 12px;
        color: #8c8c8c;
      }
    }
  }
}
.file-form-title {
  max-width: 225px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

// 库容量超出限制时
// #container.project-container.has-too-large-tip {
#container.has-too-large-tip {
  .mr-nav {
    top: 219px;
  }
}
.branch-more-style-cut {
  display: inline-block;
  vertical-align: top;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
